
const Mock=require('mockjs')

const data=Mock.mock({
    'list|100':[{
        'img':'@image(100x100,@color)',
        'id':"@id",
        'title':"@ctitle",
        'desc':"@cword(100)",
        'num|100-1000':1,
    }]
})
const fs=require('fs')
// const { stringify } = require('querystring')

fs.writeFileSync('../mock/data.json',JSON.stringify(data))